package com.gcit.seniorWish.web.common.persistence.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 报考专业表
 * </p>
 *
 * @author gaozhichang
 * @since 2018-03-19
 */
@TableName("enroll_school_batch_major")
public class EnrollSchoolBatchMajor extends Model<EnrollSchoolBatchMajor> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.UUID)
    private String id;
    /**
     * 报考学校ID
     */
    @TableField("enroll_school_id")
    private String enrollSchoolId;
    /**
     * 报考专业代号
     */
    @TableField("major_code")
    private String majorCode;
    /**
     * 报考专业名称
     */
    @TableField("major_name")
    private String majorName;

    /**
     * 报考专业所属批次
     */
    @TableField("batch_type")
    private int batchType ;

    /**
     * 学制
     */
    @TableField("school_length")
    private String schoolLength;
    /**
     * 创建时间
     */
    @TableField(value="create_time",fill= FieldFill.INSERT)
    private Date createTime;
    /**
     * 创建者id
     */
    @TableField(value="create_by",fill=FieldFill.INSERT)
    private String createBy;
    /**
     * 修改时间
     */
    @TableField(value="modify_time",fill=FieldFill.UPDATE)
    private Date modifyTime;
    /**
     * 修改者id
     */
    @TableField(value = "modify_by",fill= FieldFill.UPDATE)
    private String modifyBy;
    /**
     * 删除标记
     */
    @TableField(value="del_flag",fill=FieldFill.INSERT)
    @TableLogic
    private Integer delFlag;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getEnrollSchoolId() {
        return enrollSchoolId;
    }

    public void setEnrollSchoolId(String enrollSchoolId) {
        this.enrollSchoolId = enrollSchoolId;
    }

    public String getMajorCode() {
        return majorCode;
    }

    public void setMajorCode(String majorCode) {
        this.majorCode = majorCode;
    }

    public String getMajorName() {
        return majorName;
    }

    public void setMajorName(String majorName) {
        this.majorName = majorName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getModifyBy() {
        return modifyBy;
    }

    public void setModifyBy(String modifyBy) {
        this.modifyBy = modifyBy;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public void setSchoolLength(String schoolLength) {
        this.schoolLength = schoolLength;
    }

    public String getSchoolLength() {
        return schoolLength;
    }

    public void setBatchType(int batchType) {
        this.batchType = batchType;
    }

    public int getBatchType() {
        return batchType;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "EnrollSchoolBatchMajor{" +
        ", id=" + id +
        ", enrollSchoolId=" + enrollSchoolId +
        ", majorCode=" + majorCode +
        ", majorName=" + majorName +
                ", majorName=" + schoolLength +
                ", majorName=" + batchType +
        "}";
    }
}
